
class Hoge1 {
	String aaa
	String bbb
	String ccc
}

class Hoge2 {
	Hoge1 hoge1
	String aaa
	String bbb
	String ccc
}

class Hoge3 {
	Hoge2 hoge2
	String aaa
	String bbb
	String ccc
}

hoge1 = new Hoge1(aaa:"Xxx's aaa", bbb:"Xxx's bbb", ccc:"Xxx's ccc")
hoge2 = new Hoge2(hoge1: hoge1, aaa:"Yyy's aaa", bbb:"Yyy's bbb", ccc:"Yyy's ccc")
hoge3 = new Hoge3(hoge2: hoge2, aaa:"Zzz's aaa", bbb:"Zzz's bbb", ccc:"Zzz's ccc")

println "${hoge3.hoge2.hoge1.aaa}"

def(i,j) = [1,2]
println i
println j

def hoge1,hoge2
(hoge1, hoge2) = ["Hoge1", "Hoge2"]
println hoge1
println hoge2

hoges = ["Hoge3", "Hoge4"]
def hoge3, hoge4
(hoge3, hoge4) = hoges
println hoge3 + hoge4

